<template>
    <div v-if="category">
        <bread-view>
            <bread-item :to="'/'">首页</bread-item>
            <bread-item :to="'/'">{{category[1].name}}</bread-item>
            <bread-item :to="'/'">{{category[0].name}}</bread-item>
            <bread-item>{{name}}</bread-item>
        </bread-view>
    </div>
</template>

<script>
import BreadItem from '../utils/Bread/BreadItem.vue'
import BreadView from '../utils/Bread/BreadView.vue'
export default {
    components: { BreadView, BreadItem },
    props:{
        category:{
            type:Array,
            default:()=>{}
        },
        name:{
            type:String,
            default:''
        }
    }    
}
</script>

<style scoped>

</style>